package com.syh.jn.scm.service.api.operation.system;

import com.syh.jn.scm.dto.operation.system.account.OperationAccountMto;
import com.syh.jn.scm.dto.operation.system.account.OperationAccountSto;
import com.syh.jn.scm.dto.operation.system.account.OperationAccountVo;
import com.syh.jn.scm.service.core.BaseService;

public interface OperationAccountService extends BaseService<OperationAccountSto, OperationAccountMto, OperationAccountVo, Long> {

	public void changeEnable(Long accountId, Short enable);

	public void setRole(Long accountId, Long roldId);

	public OperationAccountVo verifyAccountPassword(String loginAccount, String password);

	public void updataPassword(String loginAccount, String oldPassword, String newPassword) throws Exception;

	/**
	 * 检查是否需要创建运营后台超级管理员
	 */
	public void initOperationSystemAccount();

	/**
	 * 是否是管理员
	 *
	 * @param id
	 * @return
	 */
	public boolean identityAdmin(Long id);
}
